<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
 	  xmlns:p="http://primefaces.org/ui"
 	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:composite="http://java.sun.com/jsf/composite" >
	<composite:interface>
		<composite:attribute name="ide" type="java.lang.String" required="true"/>
		<composite:attribute name="action" method-signature="void action()" required="true"/>
		<composite:attribute name="update" type="java.lang.String" />
		<composite:attribute name="msg" />
		<composite:attribute name="ajax" type="java.lang.Boolean" default="true"/>
	</composite:interface>
	<composite:implementation>
		<p:dialog style="position:absolute" header="#{i18n.DialogoExcluir_Header}" widgetVar="dialogo#{cc.attrs.ide}" 
			width="450" modal="true" appendToBody="true" closable="false" resizable="false" >
			<h:form id="form#{cc.attrs.ide}">  
 			<div class="dialog_container_16">
 				<div class="dialog_grid_16 div-label" style="margin-top: 7px; margin-bottom: 7px;">
 					<center><label class="label">#{cc.attrs.msg}</label></center>
				</div>
				<div class="dialog_grid_16"><hr /></div>
				<div class="dialog_grid_16 right">
					<p:commandButton value="#{i18n.DialogoExcluir_Confirmar}" update="#{cc.attrs.update}" rendered="#{cc.attrs.ajax}"
						action="#{cc.attrs.action}" oncomplete="dialogo#{cc.attrs.ide}.hide();" ajax="#{cc.attrs.ajax}" />
					<p:commandButton value="#{i18n.DialogoExcluir_Confirmar}" rendered="#{!cc.attrs.ajax}"
						action="#{cc.attrs.action}" oncomplete="dialogo#{cc.attrs.ide}.hide();" ajax="#{cc.attrs.ajax}" />
					<p:commandButton value="#{i18n.DialogoExcluir_Cancelar}" type="button" onclick="dialogo#{cc.attrs.ide}.hide();" />
				</div>
			</div>
			</h:form>
		</p:dialog>
	</composite:implementation>
</html>